/*
 * Diego Zamboni Latance 			344990
 * Fellipe Augusto Ruiz de Souza 	344796
 * 
 */
package ast;

public class ParenthesisExpr extends Expr {

	public ParenthesisExpr(Expr expr) {
		this.expr = expr;
	}

	public void genC(PW pw, boolean putParenthesis) {
		pw.print("(");
		expr.genC(pw, false);
		pw.printIdent(")");
	}

	public void genKrakatoa(PW pw, boolean putParenthesis) {
		pw.print("(");
		expr.genKrakatoa(pw, false);
		pw.print(")");
	}

	public Type getType() {
		return expr.getType();
	}

	private Expr expr;
}